<html>
<head>
<title>添加WEB服务器</title>
{% include "systy.html" %}
</head>
<body>
{% ifnotequal username None%}
{% include "head.html" %}



<p>现有WEB服务器：</p>
<p>
<table>
<tr>
<td width="150">服务器IP</td>
<td width="250">备份目录路径</td>
<td width="250">需备份的文件夹</td>
<td width="250">更新文件路径</td>
<td width="100">操作</td>
</tr>
{% for ip in wiplist %}
<tr><td width="150">{{ ip.ip }}</td>
    <td width="250">{{ip.backuppath}}</td>
    <td width="250">{{ip.backdir}}</td>
    <td width="250">{{ip.path}}</td>
    <td width="100"><a href="/webserverdel/{{ ip.id }}.html" onclick="return confirm_delete()">删除</a></td>
</tr>
{% endfor %}
</table>
</p>
<form action="" method="post">
IP地址：{{ fr.ip }}
备份目录路径：{{ fr.backuppath }}
需备份的文件夹：{{ fr.backdir }}
服务器文件路径：{{ fr.path }}
<input type="submit" value="添加">
</form>
{% else %}
你无权访问，请<a href="/login.html">登陆!</a>
{% endifnotequal%}
</body>
</html>
<script>
    function confirm_delete(){
        if(!confirm('是否删除?')){
            return false;
        }
    }
</script>